// 导入normalize.css
import 'normalize.css/normalize.css'
import '@/assets/css/common.scss'
// 导入svg图标
import 'virtual:svg-icons-register'
import { RecycleScroller } from 'vue-virtual-scroller'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import { createApp } from 'vue'
import App from './App.vue'
// 导入路由
import router from './router/index.js'
// 导入elements 相关配置

// 导入pinia
import pinia from '@/store/index.js'
const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.component('RecycleScroller', RecycleScroller)

import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
app.use(ElementPlus, {
  locale: zhCn,
})

app.use(pinia)
app.use(router)
app.mount('#app')
